/**
 * @author Joson
 * Just for demo.
 */
Date.parseDateStr = function(str) {
	var year=1970, month=1, day=1, hour=0, minute=0, sec=0;
	
	var parts = str.split(" ");
	
	// parse date part
	var part = parts[0];
	var ymd = part.split("-");
	year = ymd[0]*1;
	month = ymd[1]*1;
	day = ymd[2]*1;
	
	if (parts.length > 1) {
		part = parts[1];
		var hms = part.split(":");
		hour = hms[0]*1;
		minute = hms[1]*1;
		sec = hms[2]*1;
	}
	
	return new Date(year, month, day, hour, minute, sec);
}

Date.prototype.toStdDateTimeString = function () {
	return this.getFullYear()+"-"+(this.getMonth()>9? this.getMonth() : "0"+this.getMonth())
			+"-"+(this.getDate()>9? this.getDate() : "0"+this.getDate())
			+" "+(this.getHours()>9? this.getHours() : "0"+this.getHours())
			+":"+(this.getMinutes()>9? this.getMinutes() : "0"+this.getMinutes())
			+":"+(this.getSeconds()>9? this.getSeconds() : "0"+this.getSeconds());
};

Date.prototype.toStdDateString = function () {
	return this.getFullYear()+"-"+(this.getMonth()>9? this.getMonth() : "0"+this.getMonth())
			+"-"+(this.getDate()>9? this.getDate() : "0"+this.getDate());
};


window.mem = {
	"projInfo":	{
		"201102110301":	{
			id:	"201102110301",
			projName:	"aa广场工程",
			projOrg:	"AA建设开发有限公司",
			investScale:	1100,
			investSource:	"独资",
			projType:		"商业广场开发",
			projContent:	"开发建设XX商业广场",
			projAddr:		"广州市海珠区XX路",
			projArea:		35340.5,
			startDate:		Date.parseDateStr("2012-05-01"),
			endDate:		Date.parseDateStr("2013-05-01"),
			cashupDate:		Date.parseDateStr("2012-07-05"),
			setupDate:		Date.parseDateStr("2012-03-05"),
			creDate:		Date.parseDateStr("2012-04-05"),
			invested:		500,
			approveNum:		"2012354-10",
			creOrg:			"海珠区监察局",
			mark:			"",
			trustee:		"李强",
			trusteePhone:	"13511001100",
			leader:			"领导1",
			leaderPhone:	"13512345678"
			
		},
		"201102110302":	{
			id:	"201102110301",
			projName:	"bb广场工程",
			projOrg:	"BB建设开发有限公司",
			investScale:	1100,
			investSource:	"独资",
			projType:		"商业广场开发",
			projContent:	"开发建设XX商业广场",
			projAddr:		"广州市海珠区XX路",
			projArea:		35340.5,
			startDate:		Date.parseDateStr("2012-05-01"),
			endDate:		Date.parseDateStr("2013-05-01"),
			cashupDate:		Date.parseDateStr("2012-07-05"),
			setupDate:		Date.parseDateStr("2012-03-05"),
			creDate:		Date.parseDateStr("2012-04-05"),
			invested:		500,
			approveNum:		"2012354-10",
			creOrg:			"海珠区监察局",
			mark:			"",
			trustee:		"李强",
			trusteePhone:	"13511001100",
			leader:			"领导1",
			leaderPhone:	"13512345678"
		},
		"201102110303":	{
			id:	"201102110301",
			projName:	"cc广场工程",
			projOrg:	"AA建设开发有限公司",
			investScale:	1100,
			investSource:	"独资",
			projType:		"商业广场开发",
			projContent:	"开发建设XX商业广场",
			projAddr:		"广州市海珠区XX路",
			projArea:		35340.5,
			startDate:		Date.parseDateStr("2012-05-01"),
			endDate:		Date.parseDateStr("2013-05-01"),
			cashupDate:		Date.parseDateStr("2012-07-05"),
			setupDate:		Date.parseDateStr("2012-03-05"),
			creDate:		Date.parseDateStr("2012-04-05"),
			invested:		500,
			approveNum:		"2012354-10",
			creOrg:			"海珠区监察局",
			mark:			"",
			trustee:		"李强",
			trusteePhone:	"13511001100",
			leader:			"领导1",
			leaderPhone:	"13512345678"
		},
		"201102110341":	{
			id:	"201102110301",
			projName:	"dd广场工程",
			projOrg:	"AA建设开发有限公司",
			investScale:	1100,
			investSource:	"独资",
			projType:		"商业广场开发",
			projContent:	"开发建设XX商业广场",
			projAddr:		"广州市海珠区XX路",
			projArea:		35340.5,
			startDate:		Date.parseDateStr("2012-05-01"),
			endDate:		Date.parseDateStr("2013-05-01"),
			cashupDate:		Date.parseDateStr("2012-07-05"),
			setupDate:		Date.parseDateStr("2012-03-05"),
			creDate:		Date.parseDateStr("2012-04-05"),
			invested:		500,
			approveNum:		"2012354-10",
			creOrg:			"海珠区监察局",
			mark:			"",
			trustee:		"李强",
			trusteePhone:	"13511001100",
			leader:			"领导1",
			leaderPhone:	"13512345678"
		},
		"201102110501":	{
			id:	"201102110301",
			projName:	"ee广场工程",
			projOrg:	"AA建设开发有限公司",
			investScale:	1100,
			investSource:	"独资",
			projType:		"商业广场开发",
			projContent:	"开发建设XX商业广场",
			projAddr:		"广州市海珠区XX路",
			projArea:		35340.5,
			startDate:		Date.parseDateStr("2012-05-01"),
			endDate:		Date.parseDateStr("2013-05-01"),
			cashupDate:		Date.parseDateStr("2012-07-05"),
			setupDate:		Date.parseDateStr("2012-03-05"),
			creDate:		Date.parseDateStr("2012-04-05"),
			invested:		500,
			approveNum:		"2012354-10",
			creOrg:			"海珠区监察局",
			mark:			"",
			trustee:		"李强",
			trusteePhone:	"13511001100",
			leader:			"领导1",
			leaderPhone:	"13512345678"
		},
		"201102110601":	{
			id:	"201102110301",
			projName:	"ff广场工程",
			projOrg:	"AA建设开发有限公司",
			investScale:	1100,
			investSource:	"独资",
			projType:		"商业广场开发",
			projContent:	"开发建设XX商业广场",
			projAddr:		"广州市海珠区XX路",
			projArea:		35340.5,
			startDate:		Date.parseDateStr("2012-05-01"),
			endDate:		Date.parseDateStr("2013-05-01"),
			cashupDate:		Date.parseDateStr("2012-07-05"),
			setupDate:		Date.parseDateStr("2012-03-05"),
			creDate:		Date.parseDateStr("2012-04-05"),
			invested:		500,
			approveNum:		"2012354-10",
			creOrg:			"海珠区监察局",
			mark:			"",
			trustee:		"李强",
			trusteePhone:	"13511001100",
			leader:			"领导1",
			leaderPhone:	"13512345678"
		},
		"201102710301":	{
			id:	"201102110301",
			projName:	"gg广场工程",
			projOrg:	"AA建设开发有限公司",
			investScale:	1100,
			investSource:	"独资",
			projType:		"商业广场开发",
			projContent:	"开发建设XX商业广场",
			projAddr:		"广州市海珠区XX路",
			projArea:		35340.5,
			startDate:		Date.parseDateStr("2012-05-01"),
			endDate:		Date.parseDateStr("2013-05-01"),
			cashupDate:		Date.parseDateStr("2012-07-05"),
			setupDate:		Date.parseDateStr("2012-03-05"),
			creDate:		Date.parseDateStr("2012-04-05"),
			invested:		500,
			approveNum:		"2012354-10",
			creOrg:			"海珠区监察局",
			mark:			"",
			trustee:		"李强",
			trusteePhone:	"13511001100",
			leader:			"领导1",
			leaderPhone:	"13512345678"
		},
		"201102118301":	{
			id:	"201102110301",
			projName:	"hh广场工程",
			projOrg:	"AA建设开发有限公司",
			investScale:	1100,
			investSource:	"独资",
			projType:		"商业广场开发",
			projContent:	"开发建设XX商业广场",
			projAddr:		"广州市海珠区XX路",
			projArea:		35340.5,
			startDate:		Date.parseDateStr("2012-05-01"),
			endDate:		Date.parseDateStr("2013-05-01"),
			cashupDate:		Date.parseDateStr("2012-07-05"),
			setupDate:		Date.parseDateStr("2012-03-05"),
			creDate:		Date.parseDateStr("2012-04-05"),
			invested:		500,
			approveNum:		"2012354-10",
			creOrg:			"海珠区监察局",
			mark:			"",
			trustee:		"李强",
			trusteePhone:	"13511001100",
			leader:			"领导1",
			leaderPhone:	"13512345678"
		}
	},
	"envApprove":	{
		"201102110302":	{
			"G-20110323-0233":	{
				"id":	"G-20110323-0233",
				"approveNum":	"G-20110323-0233",
				"approveDate":	Date.parseDateStr("2012-04-15"),
				"creDate":	Date.parseDateStr("2012-04-15"),
				"creOrg":			"海珠区监察局",
				"creUser":			"张三",
				"verified":	false
			}
		},
		"201102110601":	{
			"G-20110323-0253":	{
				"id":	"G-20110323-0233",
				"approveNum":	"G-20110323-0253",
				"approveDate":	Date.parseDateStr("2012-04-15"),
				"creDate":	Date.parseDateStr("2012-04-15"),
				"creOrg":			"海珠区监察局",
				"creUser":			"张三",
				"verified":	true
			}
		},
		"201102710301":	{
			"G-20110323-0413":	{
				"id":	"G-20110323-0233",
				"approveNum":	"G-20110323-0413",
				"approveDate":	Date.parseDateStr("2012-04-15"),
				"creDate":	Date.parseDateStr("2012-04-15"),
				"creOrg":			"海珠区监察局",
				"creUser":			"张三",
				"verified":	true
			}
		},
		"201102118301":	{
			"G-20110323-0463":	{
				"id":	"G-20110323-0233",
				"approveNum":	"G-20110323-0463",
				"approveDate":	Date.parseDateStr("2012-04-15"),
				"creDate":		Date.parseDateStr("2012-04-15"),
				"creOrg":		"海珠区监察局",
				"creUser":		"张三",
				"verified":		true
			}
		}
	},
	"planApprove":	{
		"201102110302":	{
			"G-20110323-0233":	{
				"id":	"G-20110323-0233",
				"approveNum":	"G-20110323-0233",
				"approveDate":	Date.parseDateStr("2012-04-15"),
				"creDate":	Date.parseDateStr("2012-04-15"),
				"creOrg":			"海珠区监察局",
				"creUser":			"赵六",
				"verified":	false
			}
		},
		"201102110601":	{
			"G-20110323-0253":	{
				"id":	"G-20110323-0233",
				"approveNum":	"G-20110323-0253",
				"approveDate":	Date.parseDateStr("2012-04-15"),
				"creDate":	Date.parseDateStr("2012-04-15"),
				"creOrg":			"海珠区监察局",
				"creUser":			"赵六",
				"verified":	true
			}
		},
		"201102710301":	{
			"G-20110323-0413":	{
				"id":	"G-20110323-0233",
				"approveNum":	"G-20110323-0413",
				"approveDate":	Date.parseDateStr("2012-04-15"),
				"creDate":	Date.parseDateStr("2012-04-15"),
				"creOrg":			"海珠区监察局",
				"creUser":			"赵六",
				"verified":	true
			}
		},
		"201102118301":	{
			"G-20110323-0463":	{
				"id":	"G-20110323-0233",
				"approveNum":	"G-20110323-0463",
				"approveDate":	Date.parseDateStr("2012-04-15"),
				"creDate":		Date.parseDateStr("2012-04-15"),
				"creOrg":		"海珠区监察局",
				"creUser":		"赵六",
				"verified":		true
			}
		}
	},
	"landApprove":	{
		"201102110302":	{
			"G-20110323-0233":	{
				"id":	"G-20110323-0233",
				"approveNum":	"G-20110323-0233",
				"approveDate":	Date.parseDateStr("2012-04-15"),
				"creDate":	Date.parseDateStr("2012-04-15"),
				"creOrg":			"海珠区监察局",
				"creUser":			"林七",
				"verified":	false
			}
		},
		"201102110601":	{
			"G-20110323-0253":	{
				"id":	"G-20110323-0233",
				"approveNum":	"G-20110323-0253",
				"approveDate":	Date.parseDateStr("2012-04-15"),
				"creDate":	Date.parseDateStr("2012-04-15"),
				"creOrg":			"海珠区监察局",
				"creUser":			"林七",
				"verified":	true
			}
		},
		"201102710301":	{
			"G-20110323-0413":	{
				"id":	"G-20110323-0233",
				"approveNum":	"G-20110323-0413",
				"approveDate":	Date.parseDateStr("2012-04-15"),
				"creDate":	Date.parseDateStr("2012-04-15"),
				"creOrg":			"海珠区监察局",
				"creUser":			"林七",
				"verified":	true
			}
		},
		"201102118301":	{
			"G-20110323-0463":	{
				"id":	"G-20110323-0233",
				"approveNum":	"G-20110323-0463",
				"approveDate":	Date.parseDateStr("2012-04-15"),
				"creDate":		Date.parseDateStr("2012-04-15"),
				"creOrg":		"海珠区监察局",
				"creUser":		"林七",
				"verified":		true
			}
		}
	},
	"constrApprove":	{
		"201102110302":	{
			"G-20110323-0233":	{
				"id":	"G-20110323-0233",
				"approveNum":	"G-20110323-0233",
				"approveDate":	Date.parseDateStr("2012-04-15"),
				"creDate":	Date.parseDateStr("2012-04-15"),
				"creOrg":			"海珠区监察局",
				"creUser":			"王明",
				"verified":	false
			}
		},
		"201102110601":	{
			"G-20110323-0253":	{
				"id":	"G-20110323-0233",
				"approveNum":	"G-20110323-0253",
				"approveDate":	Date.parseDateStr("2012-04-15"),
				"creDate":	Date.parseDateStr("2012-04-15"),
				"creOrg":			"海珠区监察局",
				"creUser":			"王明",
				"verified":	true
			}
		},
		"201102710301":	{
			"G-20110323-0413":	{
				"id":	"G-20110323-0233",
				"approveNum":	"G-20110323-0413",
				"approveDate":	Date.parseDateStr("2012-04-15"),
				"creDate":	Date.parseDateStr("2012-04-15"),
				"creOrg":			"海珠区监察局",
				"creUser":			"王明",
				"verified":	true
			}
		},
		"201102118301":	{
			"G-20110323-0463":	{
				"id":	"G-20110323-0233",
				"approveNum":	"G-20110323-0463",
				"approveDate":	Date.parseDateStr("2012-04-15"),
				"creDate":		Date.parseDateStr("2012-04-15"),
				"creOrg":		"海珠区监察局",
				"creUser":		"王明",
				"verified":		true
			}
		}
	},
	"purchaseApprove":	{
		"201102110302":	{
			"G-20110323-0233":	{
				"id":	"G-20110323-0233",
				"approveNum":	"G-20110323-0233",
				"approveDate":	Date.parseDateStr("2012-04-15"),
				"creDate":	Date.parseDateStr("2012-04-15"),
				"creOrg":			"海珠区监察局",
				"creUser":			"张强",
				"verified":	false
			}
		},
		"201102110601":	{
			"G-20110323-0253":	{
				"id":	"G-20110323-0233",
				"approveNum":	"G-20110323-0253",
				"approveDate":	Date.parseDateStr("2012-04-15"),
				"creDate":	Date.parseDateStr("2012-04-15"),
				"creOrg":			"海珠区监察局",
				"creUser":			"张强",
				"verified":	true
			}
		},
		"201102710301":	{
			"G-20110323-0413":	{
				"id":	"G-20110323-0233",
				"approveNum":	"G-20110323-0413",
				"approveDate":	Date.parseDateStr("2012-04-15"),
				"creDate":	Date.parseDateStr("2012-04-15"),
				"creOrg":			"海珠区监察局",
				"creUser":			"张强",
				"verified":	true
			}
		},
		"201102118301":	{
			"G-20110323-0463":	{
				"id":	"G-20110323-0233",
				"approveNum":	"G-20110323-0463",
				"approveDate":	Date.parseDateStr("2012-04-15"),
				"creDate":		Date.parseDateStr("2012-04-15"),
				"creOrg":		"海珠区监察局",
				"creUser":		"张强",
				"verified":		true
			}
		}
	},
	"supervise":	{
		"201102110302":	{
			"10001":	{
				"id":	"10001",
				"creUser":	"李四",
				"creDate":	Date.parseDateStr("2012-04-01"),
				"supervisor":	"李四",
				"targetOrg":	"XX办公室",
				"endDate":	Date.parseDateStr("2012-04-25"),
				"finishDate":	Date.parseDateStr("2012-04-23"),
				"content":	"审核项目必需的文件",
				"status":	"已完成",
				"type":		"envsupervise"
			},
			"10002":	{
				"id":	"10002",
				"creUser":	"李四",
				"creDate":	Date.parseDateStr("2012-06-28"),
				"supervisor":	"李四",
				"targetOrg":	"XX办公室",
				"endDate":	Date.parseDateStr("2012-07-25"),
				"finishDate":	null,
				"content":	"审核项目预算",
				"status":	"未完成",
				"type":		"envsupervise"
			}
		},
		"201102110341":	{
			"10001":	{
				"id":	"10001",
				"creUser":	"李四",
				"creDate":	Date.parseDateStr("2012-04-01"),
				"supervisor":	"李四",
				"targetOrg":	"XX办公室",
				"endDate":	Date.parseDateStr("2012-04-25"),
				"finishDate":	Date.parseDateStr("2012-04-23"),
				"content":	"审核项目必需的文件",
				"status":	"已完成",
				"type":		"envsupervise"
			}
		}
	
	},
	"biddingApprove":	{
		"201102110302":	{
			"G-20110323-0233":	{
				"id":	"G-20110323-0233",
				"approveNum":	"G-20110323-0233",
				"approveDate":	Date.parseDateStr("2012-04-15"),
				"creDate":	Date.parseDateStr("2012-04-15"),
				"creOrg":			"海珠区监察局",
				"creUser":			"张强",
				"verified":	false
			}
		},
		"201102110601":	{
			"G-20110323-0253":	{
				"id":	"G-20110323-0233",
				"approveNum":	"G-20110323-0253",
				"approveDate":	Date.parseDateStr("2012-04-15"),
				"creDate":	Date.parseDateStr("2012-04-15"),
				"creOrg":			"海珠区监察局",
				"creUser":			"张强",
				"verified":	true
			}
		},
		"201102710301":	{
			"G-20110323-0413":	{
				"id":	"G-20110323-0233",
				"approveNum":	"G-20110323-0413",
				"approveDate":	Date.parseDateStr("2012-04-15"),
				"creDate":	Date.parseDateStr("2012-04-15"),
				"creOrg":			"海珠区监察局",
				"creUser":			"张强",
				"verified":	true
			}
		},
		"201102118301":	{
			"G-20110323-0463":	{
				"id":	"G-20110323-0233",
				"approveNum":	"G-20110323-0463",
				"approveDate":	Date.parseDateStr("2012-04-15"),
				"creDate":		Date.parseDateStr("2012-04-15"),
				"creOrg":		"海珠区监察局",
				"creUser":		"张强",
				"verified":		true
			}
		}
	}
};